#ifndef __TVECTOR_DEF_H__
#define __TVECTOR_DEF_H__

#include <vector>

#define TVECTOR	std::vector

template<class T>
class CTVector{
public:
	static void Destroy(TVECTOR<T>& vct){
		T	pItem = NULL;
		while(vct.size() > 0)
		{
			pItem = vct[vct.size()-1];
			vct.pop_back();
			delete pItem;
		}
	}

	static void Delete(TVECTOR<T>& vct, UINT nIndex)
	{
		T	pItem = NULL;
		if(0 <= nIndex && nIndex < vct.size())
		{
			pItem = vct[nIndex];
			vct.erase(vct.begin()+nIndex);
			delete pItem;
		}
	}
};


#endif//__TVECTOR_DEF_H__